package com.ruoyi.ai.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息信息对象 py_message
 * 
 * @author ruoyi
 * @date 2025-11-01
 */
public class PyMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 所属人 */
    @Excel(name = "所属人")
    private String owner;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String filePath;

    /** 是否为机器人消息（0代表否，2代表是） */
    @Excel(name = "是否为机器人消息", readConverterExp = "0=代表否，2代表是")
    private String botFlag;

    /** 内容 */
    @Excel(name = "内容")
    private String text;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setOwner(String owner) 
    {
        this.owner = owner;
    }

    public String getOwner() 
    {
        return owner;
    }

    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }

    public void setBotFlag(String botFlag) 
    {
        this.botFlag = botFlag;
    }

    public String getBotFlag() 
    {
        return botFlag;
    }

    public void setText(String text) 
    {
        this.text = text;
    }

    public String getText() 
    {
        return text;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("owner", getOwner())
            .append("filePath", getFilePath())
            .append("botFlag", getBotFlag())
            .append("text", getText())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
